//
//  CarRecordCell.m
//  STool
//
//  Created by Samuel on 15/9/8.
//
//

#import "CarRecordCell.h"

@implementation CarRecordCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setCarRecordData:(NSMutableDictionary *)carRecordData
{
    _carRecordData = carRecordData;
    self.hundredKMCost.text = [carRecordData objectForKey:@"hundredKMCost"];
    self.hundredGLCost.text = [carRecordData objectForKey:@"hundredGLCost"];
    self.thisGLLitre.text = [carRecordData objectForKey:@"thisGLLitre"];
    self.timeToTime.text = [carRecordData objectForKey:@"timeToTime"];
    self.thisGLMoneyCost.text = [carRecordData objectForKey:@"thisGLMoneyCost"];
    self.thisGLUnitMoneyCost.text = [carRecordData objectForKey:@"thisGLUnitMoneyCost"];
    self.thisAllKM.text = [carRecordData objectForKey:@"thisAllKM"];
    self.lastAllKM.text = [carRecordData objectForKey:@"lastAllKM"];
    self.thisKM.text = [carRecordData objectForKey:@"thisKM"];
    self.thisGLCost.text = [carRecordData objectForKey:@"thisGLCost"];
}
@end
